<?php



function getMeta($title) {

	?>

		<html xmlns="http://www.w3.org/1999/xhtml">

		<head>

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

		<title>Diskimrum : <?php echo $title; ?></title>

		<meta name="keywords" content="" />

		<meta name="description" content="" />

		<link href="http://code.google.com/apis/maps/documentation/javascript/examples/standard.css" rel="stylesheet" type="text/css" />

		<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/south-street/ui.all.css" rel="stylesheet">

		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>

		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>

		<link href="default.css" rel="stylesheet" type="text/css" media="all" />

		<link rel="stylesheet" href="assets/css/nivo/themes/default/default.css" type="text/css" media="screen" />

   		<link rel="stylesheet" href="assets/css/nivo/themes/light/light.css" type="text/css" media="screen" />

    	<link rel="stylesheet" href="assets/css/nivo/themes/dark/dark.css" type="text/css" media="screen" />

    	<link rel="stylesheet" href="assets/css/nivo/themes/bar/bar.css" type="text/css" media="screen" />

    	<link rel="stylesheet" href="assets/css/nivo/nivo-slider.css" type="text/css" media="screen" />

		 <!-- Le styles -->

	   



	    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->

	    <!--[if lt IE 9]>

	      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>

	    <![endif]-->

	



		<!--[if IE 6]>

		<link href="default_ie6.css" rel="stylesheet" type="text/css" />

		<![endif]-->
		<style>
		#jendelainfo{position:absolute;z-index:1000;top:100;
		left:400;background-color:yellow;display:none;}
		</style>
		<style type="text/css">

		@import "css/demo.css";

		

		pre {

			clear: none;

		}

		div.showCode {

			margin-left: 8em;

		}

		.tabs {

			margin-top: 0.5em;

		}

		.ui-tabs-panel p {

			margin-top: 0em;

		}

		

		#tabs-min {

		background: transparent;

		border: none;

		}

		#tabs-min .ui-widget-header {

			background: transparent;

			border: none;

			border-bottom: 1px solid #c0c0c0;

			-moz-border-radius: 0px;

			-webkit-border-radius: 0px;

			border-radius: 0px;

		}

		#tabs-min .ui-state-default {

			background: transparent;

			border: none;

		}

		#tabs-min .ui-state-active {

			background: transparent url(img/uiTabsArrow.png) no-repeat bottom center;

			border: none;

		}

		#tabs-min .ui-state-default a {

			color: #c0c0c0;

		}

		#tabs-min .ui-state-active a {

			color: #459E00;

		}



		</style>

		</head>

	<?php

}



function getHeader() {

	?>

		<div id="logo">

				<h1><a href="#"><img src="images/logo.png" width="400px"></a></h1>

		</div>

	<?php

}



function getMenu() {

	?>

		<div id="menu">

			<ul>

				<li><a href="?page=home" accesskey="1" title="">Beranda</a></li>

				<li><a href="?page=map" accesskey="2" title="">Peta</a></li>

				<li><a href="?page=bukutamu" accesskey="4" title="">Buku Tamu</a></li>

			</ul>

		</div>

	<?php

}



function getJS() {

	?>

		<script type="text/javascript" src="http://maps.google.com/maps/api/js?js?key=AIzaSyATvl1a5qwi6xHjc3QyPSOT52ZIT-fjT2s&sensor=false"></script>

    	<script type="text/javascript" src="assets/js/jquery.nivo.slider.js"></script>

	    <script type="text/javascript">

	    $(window).load(function() {

	        $('#slider').nivoSlider();

	    });

	    </script>

	<?php

}

function getSidebar() {
	?>
		<div id="sidebar2">

		<h2>Berita Terbaru</h2>

		<?php 
			require ('class/config.php');
			$sql = mysql_query("SELECT * FROM `berita`  ORDER BY `idberita` ASC LIMIT 0,5");
		?>
		<ul class="style1">

			<?php 

			while ($row = mysql_fetch_array($sql)) {
				echo '<li><a href="?page=berita&id='.$row['idberita'].'">'.$row['judul'].'</a></li>';
			}
			
			?>
		</ul>
		</div>
	<?php
}

function getSlideshow() {
	?>
		 <div class="slider-wrapper theme-default">

		    <div id="slider" class="nivoSlider">

		        <img src="images/1.jpg" alt="" />

		        <img src="images/2.jpg" alt="" />

		        <img src="images/3.jpg" alt="" />

		    </div>

		</div>
	<?
}

function getFooter() {

	?>

		<div id="footer">

			<p>Copyright (c) 2012 diskimrumgis.com. All rights reserved. </p>

		</div>

		</body>

		</html>

	<?php

}
